<div class="pendapatan index">
	<h2><?php __('Karyawan');?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<!--
			<th><?php echo $this->Paginator->sort('id');?></th>
			<th><?php echo $this->Paginator->sort('karyawan_id');?></th>
			-->
			<th><?php echo $this->Paginator->sort('nama karyawan');?></th>
			<th><?php echo $this->Paginator->sort('gaji_pokok');?></th>
			<th><?php echo $this->Paginator->sort('uang_makan');?></th>
			<th><?php echo $this->Paginator->sort('uang_transport');?></th>
			<th><?php echo $this->Paginator->sort('premi_hadir');?></th>
			<th><?php echo $this->Paginator->sort('imk');?></th>
			<th><?php echo $this->Paginator->sort('uang_shift');?></th>
			<th><?php echo $this->Paginator->sort('uang_jabatan');?></th>
			<th><?php echo $this->Paginator->sort('tunjangan_skill');?></th>
			<th><?php echo $this->Paginator->sort('tunjangan_kesehatan');?></th>
			<th><?php echo $this->Paginator->sort('tunjangan_insentif');?></th>
			<th><?php echo $this->Paginator->sort('uang_cuti');?></th>

			<th><?php echo $this->Paginator->sort('telat_1');?></th>
			<th><?php echo $this->Paginator->sort('telat_2');?></th>
			<th><?php echo $this->Paginator->sort('telat_3');?></th>
			<th><?php echo $this->Paginator->sort('telat_4');?></th>
			<th><?php echo $this->Paginator->sort('telat_5');?></th>
			<th><?php echo $this->Paginator->sort('pulang_cepat_1');?></th>
			<th><?php echo $this->Paginator->sort('pulang_cepat_2');?></th>
			<th><?php echo $this->Paginator->sort('pulang_cepat_3');?></th>

                        <th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($karyawan as $karyawan):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<!--
		<td><?php echo $karyawan['Karyawan']['id']; ?>&nbsp;</td>
		<td><?php echo $karyawan['Karyawan']['karyawan_id']; ?>&nbsp;</td>
		-->
		<td><?php echo $karyawan['Karyawan']['nama']; ?>&nbsp;</td>
		<td><?php echo $karyawan['Pendapatan']['gaji_pokok']; ?>&nbsp;</td>
		<td><?php echo $karyawan['Pendapatan']['uang_makan']; ?>&nbsp;</td>
		<td><?php echo $karyawan['Pendapatan']['uang_transport']; ?>&nbsp;</td>
		<td><?php echo $karyawan['Pendapatan']['premi_hadir']; ?>&nbsp;</td>
		<td><?php echo $karyawan['Pendapatan']['imk']; ?>&nbsp;</td>
		<td><?php echo $karyawan['Pendapatan']['uang_shift']; ?>&nbsp;</td>
		<td><?php echo $karyawan['Pendapatan']['uang_jabatan']; ?>&nbsp;</td>
		<td><?php echo $karyawan['Pendapatan']['tunjangan_skill']; ?>&nbsp;</td>
		<td><?php echo $karyawan['Pendapatan']['tunjangan_kesehatan']; ?>&nbsp;</td>
		<td><?php echo $karyawan['Pendapatan']['tunjangan_insentif']; ?>&nbsp;</td>
		<td><?php echo $karyawan['Pendapatan']['uang_cuti']; ?>&nbsp;</td>

                <td><?php echo $karyawan['Potongan']['telat_1']; ?>&nbsp;</td>
                <td><?php echo $karyawan['Potongan']['telat_2']; ?>&nbsp;</td>
		<td><?php echo $karyawan['Potongan']['telat_3']; ?>&nbsp;</td>
		<td><?php echo $karyawan['Potongan']['telat_4']; ?>&nbsp;</td>
		<td><?php echo $karyawan['Potongan']['telat_5']; ?>&nbsp;</td>
		<td><?php echo $karyawan['Potongan']['pulang_cepat_1']; ?>&nbsp;</td>
		<td><?php echo $karyawan['Potongan']['pulang_cepat_2']; ?>&nbsp;</td>
		<td><?php echo $karyawan['Potongan']['pulang_cepat_3']; ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__('Edit', true), array('action' => 'pendapatanEditPage', $karyawan['Karyawan']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>